<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" />

<?php $this->pageTitle = Yii::app()->name; ?>

<!-- blueprint CSS framework -->
<link rel="stylesheet" type="text/css"
	href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css"
	media="screen, projection" />
<link rel="stylesheet" type="text/css"
	href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css"
	media="print" />
<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

<link rel="stylesheet" type="text/css"
	href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
<link rel="stylesheet" type="text/css"
	href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
<link rel="stylesheet" type="text/css"
	href="<?php echo Yii::app()->request->baseUrl; ?>/css/bilyn.css" />

<title><?php echo CHtml::encode($this->pageTitle); ?></title>

</head>

<body>
	<div class="layout-main">
		<div class="layout-main-shortcuts">
			<div class="container">
				<div class="span-24">
					<div id="shortcutmenu" class="right">
					<?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array(		
					array('label'=>'My Account', 'url'=>array('/site/page', 'view'=>'about')),
					array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
					array('label'=>'Contact', 'url'=>array('/site/contact')),
					array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
					array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
					),
					)); ?>
					</div>
				</div>
			</div>
		</div>
		<div class="layout-main-bg">
			<div class="layout-main-header">
				<div class="container">
					<div class="span-4">
						<pt1> <?php echo CHtml::encode(Yii::app()->name);?></pt1>
					</div>
					<div class="span-8">
						<pt2>海内存知己，天涯若比邻</pt2>
					</div>
					<div class="span-24">
						<div id="mainmenu">
						<?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array(
						array('label'=>'我的空间', 'url'=>array('/site/index')),
						array('label'=>'比邻地图', 'url'=>array('/site/page', 'view'=>'about')),
						),
						)); ?>
						</div>
					</div>
				</div>
			</div>
			<div class="container">
				<div class="layout-main-body">
					<div id="layout-main-leftside" class="span-4">
					<?php $this->beginWidget('zii.widgets.CPortlet'); ?>
						* ...insert content here... *
						<?php $this->endWidget(); ?>
					</div>
					<div class="span-16">
					<?php echo $content; ?>
					</div>
					<div class="span-4 last">right side</div>
				</div>
			</div>
		</div>
		<div class="layout-main-footer"></div>
	</div>

</body>
</html>
